home *** CD-ROM | disk | FTP | other *** search
- -- card: 2916 from stack: in
- -- bmap block id: 3658
- -- flags: 0000
- -- background id: 2779
- -- name:
- ----- HyperTalk script -----
- on appleEvent class,id,sender
- put empty into cd fld temp
- put empty into cd fld data
- put empty into cd fld "result_fld"
- put "I got an Apple Event From:" & return into cd fld temp
- put sender & return after cd fld temp
- put "class: " & class & return after cd fld temp
- put "id: " & id & return after cd fld temp
- request appleEvent data
- put it into cd fld "data"
-
- end appleEvent
-
-
-
-
- -- part 1 (field)
- -- low flags: 04
- -- high flags: 0002
- -- rect: left=11 top=4 right=54 bottom=211
- -- title width / last selected line: 0
- -- icon id / first selected line: 0 / 0
- -- text alignment: 0
- -- font id: 3
- -- text size: 9
- -- style flags: 0
- -- line height: 12
- -- part name: temp
-
-
- -- part 2 (button)
- -- low flags: 00
- -- high flags: A003
- -- rect: left=0 top=218 right=240 bottom=100
- -- title width / last selected line: 0
- -- icon id / first selected line: 0 / 0
- -- text alignment: 1
- -- font id: 0
- -- text size: 12
- -- style flags: 0
- -- line height: 16
- -- part name: get address
- ----- HyperTalk script -----
- on mouseUp
- global address
- put empty into cd fld temp
- put empty into cd fld data
- put empty into cd fld "result_fld"
-
- answer program "enter the address for the program"
- put it into address
- put it into cd field "address"
-
- end mouseUp
-
-
- -- part 3 (button)
- -- low flags: 00
- -- high flags: A003
- -- rect: left=124 top=218 right=240 bottom=224
- -- title width / last selected line: 0
- -- icon id / first selected line: 0 / 0
- -- text alignment: 1
- -- font id: 0
- -- text size: 12
- -- style flags: 0
- -- line height: 16
- -- part name: Send event
- ----- HyperTalk script -----
- on mouseUp
- global address
- put line 1 of cd fld "address" into address
- put empty into cd fld temp
- put empty into cd fld "result_fld"
-
- put cd fld data into my_data
- send my_data to program address
- put the result into cd fld "result_fld"
- if cd fld "result_fld" is empty
- then
- put "I Sent an Apple Event: no error " into cd field "result_fld"
- end if
-
- end mouseUp
-
-
- -- part 5 (field)
- -- low flags: 04
- -- high flags: 0002
- -- rect: left=11 top=106 right=131 bottom=211
- -- title width / last selected line: 0
- -- icon id / first selected line: 0 / 0
- -- text alignment: 0
- -- font id: 3
- -- text size: 9
- -- style flags: 0
- -- line height: 12
- -- part name: address
-
-
- -- part 6 (field)
- -- low flags: 04
- -- high flags: 0007
- -- rect: left=11 top=145 right=194 bottom=211
- -- title width / last selected line: 0
- -- icon id / first selected line: 0 / 0
- -- text alignment: 0
- -- font id: 3
- -- text size: 9
- -- style flags: 0
- -- line height: 12
- -- part name: data
-
-
- -- part 7 (field)
- -- low flags: 04
- -- high flags: 0002
- -- rect: left=11 top=68 right=93 bottom=211
- -- title width / last selected line: 0
- -- icon id / first selected line: 0 / 0
- -- text alignment: 0
- -- font id: 3
- -- text size: 9
- -- style flags: 0
- -- line height: 12
- -- part name: result_fld
-
-
- -- part contents for card part 7
- ----- text -----
- No such program.